package cn.ytr.crm.domain;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
public class Role extends BaseDomain{

    //角色id
    private Long id;

    //角色名称
    private String name;

    //角色编号
    private String sn;

    //关联-权限 该角色所有的权限
    private List<Permission> permissions;

    //get & set
    public List<Permission> getPermissions() {
        return permissions;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
}